# 导入
import cv2
# 读取
image_Color = cv2.imread('tutu.jpg')
# 显示
image_Gray = cv2.imread('tutu.jpg',cv2.IMREAD_GRAYSCALE)
# 打印结果
print('显示彩色图像的属性：','\n''shape=',image_Color.shape,'\n''size=',image_Color.size,'\n''type=',image_Color.dtype,'\n''显示灰度图属性：','\n''shape=',image_Gray.shape,'\n''size=',image_Gray.size,'\n''type=',image_Gray.dtype)
